main method now returns an intproperly