conditions not working on original open