updated compilation method to standard method