finaly working/ not nice though