fixed prototype error