split profiles less code