little better logic