$args not working properly