update to respect java rules