erlang:apply is not necessary since the arguments are known