worked on bolt logic.