use strict added, code formatting