updated code syntax