changing format and removing earlier call to apt which is redundant