modified logic in haml