added GA-code