bug with condition. reverted back to working version