added arguments check