updated code style