changed code format