functional andromeda implementation, I believe