Code snippet not working properly