moved call to after declaration