adding a parameter to this so i can call it from ios