got working first version