statics function propperly