updated to elgg coding standards