made code work